//
//  AppDelegate.m
//  DrivingQuestionBank
//
//  Created by mac on 2023/12/28.
//

#import "AppDelegate.h"
#import "DQBHomeViewController.h"
#import "DQBBaseNavigationViewController.h"
#import "DQDataSource.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    
    [DQDataSource dq_createDataSource];
    
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    DQBHomeViewController *homeVC = [[DQBHomeViewController alloc] initWithNibName:@"DQBHomeViewController" bundle:nil];
    DQBBaseNavigationViewController *navigationVC = [[DQBBaseNavigationViewController alloc] initWithRootViewController:homeVC];
    
    
    self.window.rootViewController = navigationVC;
    [self.window makeKeyAndVisible];
    return YES;
}


@end
